home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Libraries ƒ / IC Resource ƒ / Syslog Component ƒ / syslog.man < prev    next >
Encoding:
Text File  |  1995-11-09  |  8.9 KB  |  77 lines  |  [TEXT/R*ch]

  1. syslogd on another host as appropriate.
  2.  
  3.                      priority is encoded as the logical OR of a level and a
  4.                      facility.  The level signifies the urgency of the
  5.                      message, and facility signifies the subsystem
  6.                      generating the message.  facility can be encoded
  7.                      explicitly in priority, or a default facility can be
  8.                      set with openlog() (see below).
  9.  
  10.                      level is selected from an ordered list:
  11.  
  12.                           LOG_EMERG           A panic condition.  This is
  13.                                               normally broadcast to all
  14.                                               users.
  15.  
  16.                           LOG_ALERT           A condition that should be
  17.                                               corrected immediately, such as
  18.                                               a corrupted system database.
  19.  
  20.                           LOG_CRIT            Critical conditions, such as
  21.                                               hard device errors.
  22.  
  23.                           LOG_ERR             Errors.
  24.  
  25.                           LOG_WARNING         Warning messages.
  26.  
  27.                           LOG_NOTICE          Conditions that are not error
  28.                                               conditions, but should
  29.                                               possibly be handled specially.
  30.  
  31.                           LOG_INFO            Informational messages.
  32.  
  33.                           LOG_DEBUG           Messages that contain
  34.                                               information normally of use
  35.                                               only when debugging a program.
  36.  
  37.                      syslog() does not log a message that does not have a
  38.                      level set.
  39.  
  40.                      If syslog() cannot pass the message to syslogd, it
  41.                      attempts to write the message on /dev/console if the
  42.                      LOG_CONS option is set (see below).
  43.  
  44.       openlog()      can be called to initialize the log file, if special
  45.                      processing is needed.  ident is a string that precedes
  46.                      every message.  logopt is a mask of bits, logically
  47.                      OR'ed together, indicating logging options.  The values
  48.                      for logopt are:
  49.  
  50.                           LOG_PID             Log the process ID with each
  51.                                               message; useful for
  52.                                               identifying instantiations of
  53.                                               daemons.
  54.  
  55.                           LOG_CONS            Force writing messages to the
  56.                                               console if unable to send it
  57.                                               to syslogd.  This option is
  58.                                               safe to use in daemon
  59.                                               processes that have no
  60.                                               controlling terminal because
  61.                                               syslog() forks before opening
  62.                                               the console.
  63.  
  64.                           LOG_NDELAY          Open the connection to syslogd
  65.                                               immediately.  Normally, the
  66.                                               open is delayed until the
  67.                                               first message is logged.  This
  68.                                               is useful for programs that
  69.                                               need to manage the order in
  70.                                               which file descriptors are
  71.                                               allocated.
  72.  
  73.                           LOG_NOWAIT          Do not wait for children
  74.                                               forked to log messages on the
  75.                                               console.  This option should
  76.                                               be used by processes that
  77.